<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/index.css">
    <title>首页</title>
</head>
<body>
    <div class="box">
        <div class="content">
            <p>首页，留言页面</p>
            <div>
                <form action="/golist" method="GET">
                    <div class="content_name">
                        <label for="name">您的用户名：</label>
                        <input id="name" type="text" name="name" required>
                    </div>
                    <div class="content_syaComment">
                        <label for="sayConment">发表言论首页：</label>
                        <textarea id="sayConment" name="content" required></textarea>
                    </div>
                    <div class="button">
                        <button type="submit" class="submitBtn">保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
<style>
    .box {
    width: 100%;
}
.content {
    width: 600px;
    margin: 100px auto;
}
.content>div {
    padding: 20px;
    border: 1px solid;    
}
.content>div .button{
    width: 100%;
    position: relative;
    margin-bottom: 40px;
    margin-top: 20px;
}
.content>div .button .submitBtn{
    position: absolute;
    right: 20px;
    color: #fff;
    background: green;
    border: none;
    cursor: pointer;
}
.content p {
    color: blue;
    font-size: 30px;
}
.content .content_name {
    margin-top: 20px;
    margin-bottom: 20px;
}
</style>